package com.jihu.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jihu.mall.common.utils.PageUtils;
import com.jihu.mall.product.entity.ProductAttrValueEntity;
import com.jihu.mall.product.entity.SpuInfoDescEntity;
import com.jihu.mall.product.entity.SpuInfoEntity;
import com.jihu.mall.product.vo.SpuSaveVo;

import java.util.List;
import java.util.Map;

/**
 * spu信息
 *
 * @author jihu
 * @email jihu@gmail.com
 * @date 2020-04-02 11:30:52
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo spuSaveVo);

    void saveBaseSpuinfo(SpuInfoEntity spuInfoEntity);

    void saveSpuinfoDesc(SpuInfoDescEntity descEntity);

    void saveProcuctAttrValue(List<ProductAttrValueEntity> entities);

    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);
}

